package com.syh.jn.scm.domain.support.entity;

import cn.redscarf.commons.util.bean.ExtBeanUtils;
import cn.redscarf.commons.util.validator.ValidationUtils;
import com.syh.core.ddd.domain.AbstractSimpleAggregate;
import com.syh.jn.scm.dto.support.HistoryDto;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Created by soci.song on 2019/1/18.
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class History extends AbstractSimpleAggregate<Long> {

    public History(HistoryDto dto){
        ValidationUtils.validate(dto);
        ExtBeanUtils.copyProperties(dto,this);
        super.initDefault();
    }

    private Long businessEntityId;

    private Long accountCompanyId;

    private String accountCompanyName;

    private Long accountId;

    private String account;

    private String accountName;

    private String accountType;

    private String ip;

    private Long originalId;

    private String originalCode;

    private String history;
}
